home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr47 / ertimer.zip / TIMER.TXT < prev   
Internet Message Format  |  1995-01-01  |  864b

  1. From: nuthing@mcl.ucsb.edu (Ethan Rohrer)
  2. Newsgroups: rec.games.programmer
  3. Subject: TIMING SOURCE CODE HERE!
  4. Date: 14 Dec 1994 05:55:34 GMT
  5.  
  6. Ok, here is some code I wrote a while ago, and touched up a little
  7. recently as someone else needed it.  As you may have noticed by the
  8. line count, it is VERY wordy...hopefully some of it is useful.
  9.  
  10. This code returns a time value in units of 838 nanoseconds,
  11. and I have found it quite useful.  Even though the examples I
  12. provide are for fixed-frame-rate games, I have used this in
  13. a crude ray-casting (yuk) demo I wrote a while back which will
  14. run as fast as your CPU (or monitor/video) will allow. 
  15.  
  16. Lemme know if you create something cool with it!
  17.  
  18. Ethan -- rer@wlv.iipo.gtegsc.com
  19. (following are timer.c and timer.h)
  20.  
  21. SNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIP
  22.  
  23.  
  24.